package com.noyes4j.ota.domain;

import com.noyes4j.common.annotation.Excel;
import com.noyes4j.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 产品对象 sys_produce
 *
 * @author noyes4j
 * @date 2021-01-29
 */
public class SysProduce extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private Long id;

    /** 配置ID */
    @Excel(name = "配置ID")
    private Long configId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String model;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String type;

    /** 存储周期 */
    @Excel(name = "存储周期")
    private String period;

    /** 上传间隔 */
    @Excel(name = "上传间隔")
    private String intervalTimes;

    /** 状态（0显示 1隐藏） */
    @Excel(name = "状态", readConverterExp = "0=显示,1=隐藏")
    private String visible;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }

    public Long getConfigId()
    {
        return configId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setPeriod(String period)
    {
        this.period = period;
    }

    public String getPeriod()
    {
        return period;
    }
    public void setIntervalTimes(String intervalTimes)
    {
        this.intervalTimes = intervalTimes;
    }

    public String getIntervalTimes()
    {
        return intervalTimes;
    }
    public void setVisible(String visible)
    {
        this.visible = visible;
    }

    public String getVisible()
    {
        return visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("configId", getConfigId())
                .append("name", getName())
                .append("model", getModel())
                .append("type", getType())
                .append("period", getPeriod())
                .append("intervalTimes", getIntervalTimes())
                .append("visible", getVisible())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}